package org.teamswift.crow.rbac.repository;

import org.springframework.stereotype.Repository;
import org.teamswift.crow.rbac.entity.CrowRole;
import org.teamswift.crow.rest.provider.jpa.ICrowRepositoryJpa;

import java.util.Optional;

@Repository
public interface CrowRoleRepository extends ICrowRepositoryJpa<Integer, CrowRole> {

    Optional<CrowRole> findByOrganizationIdAndName(Integer organizationId, String name);

}
